﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SmallERP.DAL;
using SmallERP.MODEL.FoundationModel;
using Smallerp.Contracts.DataContracts;
using System.Data;

namespace SmallERP.Bll.PinBan
{
    public class PaperFaceBLL
    {
        public static List<PaperFaceDCT> GetAllPaperFace()
        {
            List<PaperFaceDCT> paperFaceList = new List<PaperFaceDCT>();
            DataTable dt = DAL.AccessHelper.dataTable("select * from PaperFace");
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                DataRow row = dt.Rows[i];
                PaperFaceDCT paperFace = new PaperFaceDCT();
                paperFace.PaperFaceId = Convert.ToInt32(row["PaperFaceId"]);
                paperFace.PaperFaceName = (row["PaperFaceName"]).ToString();
                paperFaceList.Add(paperFace);

            }
            
            return paperFaceList;
        }
    }
}
